package com.program.facesigninsystem.service.impl;

import com.program.facesigninsystem.dao.IUploadFileDao;
import com.program.facesigninsystem.entity.UploadFile;
import com.program.facesigninsystem.service.IUploadFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Mapler
 */
@Service
public class UploadFileServiceImpl implements IUploadFileService {
    @Resource
    private IUploadFileDao iUploadFiledao;
    @Override
    public List<UploadFile> fileList(String uid, String fileType) {
        return iUploadFiledao.fileList(uid, fileType);
    }

    @Override
    public void insertFile(String uid, String fileName, String fileType, String filePath, String fileUrl, double fileSize, String createTime) {
        iUploadFiledao.insertFile(uid, fileName, fileType, filePath, fileUrl, fileSize, createTime);
    }

    @Override
    public void deleteFile(String uid, String filePath) {
        iUploadFiledao.deleteFile(uid, filePath);
    }
}
